<div class="row">
    Count of tasks: {{tasks.length}}
    <table class="table table-bordered table-striped">
        <thead>
            <tr>
                <th ng-click="toggleSorting('iid')">iid</th>
                <th ng-click="toggleSorting('pid')">pid</th>
                <th ng-click="toggleSorting('status')">status</th>
                <th ng-click="toggleSorting('dateStarted')">dateStarted</th>
                <th ng-click="toggleSorting('dateLastActive')">dateLastActive</th>
            </tr>
        </thead>
        <tbody>
             <tr ng-repeat="task in tasks|orderBy:sort.orderBy:sort.reverse|limitTo: 100" ng-dblclick="openDetail(task)">
                <td>{{task.iid}}</td>
                <td>{{task.pid}}</td>
                <td>{{task.status}}</td>
                <td>{{task.dateStarted| date:'dd.MM.yyyy HH:mm'}}</td>
                <td>{{task.dateLastActive| date:'dd.MM.yyyy HH:mm'}}</td>
            </tr>
        </tbody>
    </table>
</div>